/**
 * 
 */
package com.topu.db;

/**
 * @author popofish
 * 
 */
public abstract class PersistObject implements IPersistObject {

	private IDBCallback callback;
	private IPageSet pageset = new PageSet();
	private IPersistObject orderByAsc;
	private IPersistObject orderByDesc;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#getCallback()
	 */
	@Override
	public IDBCallback getCallback() {
		return callback;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#getOrderByAsc()
	 */
	@Override
	public IPersistObject getOrderByAsc() {
		return this.orderByAsc;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#getOrderByDesc()
	 */
	@Override
	public IPersistObject getOrderByDesc() {
		return this.orderByDesc;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#getPageSet()
	 */
	@Override
	public IPageSet getPageSet() {
		return pageset;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#setCallback(com.topu.db.IDBCallback)
	 */
	@Override
	public void setCallback(IDBCallback callback) {
		this.callback = callback;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#setOrderByAsc(java.lang.Object)
	 */
	@Override
	public void setOrderByAsc(IPersistObject order) {
		this.orderByAsc = order;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#setOrderByDesc(java.lang.Object)
	 */
	@Override
	public void setOrderByDesc(IPersistObject order) {
		this.orderByDesc = order;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.topu.db.IPersistObject#setPageSet(com.topu.db.IPageSet)
	 */
	@Override
	public void setPageSet(IPageSet page) {
		this.pageset = page;
	}

}
